package com.jswlw.service.biz.impl;

import com.jswlw.dao.biz.BindRecordMapper;
import com.jswlw.entity.biz.BindRecord;
import com.jswlw.service.biz.BindRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 吴维斌 E-mail:wuweibin0817@163.com
 * @version 创建时间：${date} ${time}
 */
@Service
public class BindRecordServiceImpl implements BindRecordService {

    @Autowired
    BindRecordMapper mapper;

    @Override
    public void add(BindRecord bindRecord) {
        mapper.insert(bindRecord);
    }

    @Override
    public void delete(Integer id) {
        mapper.deleteByPrimaryKey(id);
    }

    @Override
    public BindRecord find4Imei(String imei) {
        return mapper.find4Imei(imei);
    }
}
